<?php

$tablename = tablename('demo_aliapp_riji');
$sql = <<<EOT

CREATE TABLE IF NOT EXISTS $tablename (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `title` varchar(255) NOT NULL DEFAULT '' COMMENT '待办标题',
  `createtime` int(11) NOT NULL COMMENT '创建时间',
  `completed` tinyint(1) NOT NULL COMMENT '是否完成',
  `uid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户标识',
  `uniacid` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

EOT;

pdo_query($sql);
